﻿using System;

namespace nHydrate.EFCore.DataAccess
{
	/// <summary>
	/// A container for holding an orderby field and a sort direction
	/// </summary>
	/// <typeparam name="T">The enumeration on which to sort</typeparam>
	public class OrderedWrapper<T>
		 where T : struct, IConvertible
	{
		public T Field { get; set; }
		public bool Ascending { get; set; }
	}
}
